package edu.ccut.saturn.core;

import org.osgi.framework.Bundle;
import org.osgi.framework.BundleContext;

/**
 * Add or remove a bundle in saturnManager
 * 
 * @author LeslieGu
 */
public interface IBundleService {
    /**
     * 加入一个bundle
     * @param bundle
     */
	void addBundle(Bundle bundle);
    /**
     * 移除一个bundle
     * @param bundle
     */
	void removeBundle(Bundle bundle);
	/**
	 * 获取一个bundle
	 * @param bundleSymbolicName
	 * @return
	 */
	Bundle getBundle(String bundleSymbolicName);
	/**
	 * 获取所有bundle列表
	 * @return
	 */
	Bundle[] getBundles();
	
	BundleContext getBundleContext();
}
